package commonAdmin.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import commonAdmin.dao.OrderDao;
import commonAdmin.domain.Order;
import commonAdmin.domain.Page;
import commonAdmin.domain.WebPageSearchCondition;
import commonAdmin.service.OrderService;

@Service
public class OrderServiceImpl implements OrderService {

	@Autowired
	private OrderDao orderDao;

	@Override
	public Integer add(Order domain) {
		return orderDao.add(domain);
	}

	@Override
	public boolean update(Order domain) {
		return orderDao.update(domain);
	}

	@Override
	public Order get(Integer id) {
		return orderDao.get(id);
	}

	@Override
	public Page<Order> queryForPage(WebPageSearchCondition<Order> searchCondition, Page<Order> page) {
		return orderDao.queryForPage(searchCondition, page);
	}

	@Override
	public boolean delete(Integer id) {
		return orderDao.delete(id);
	}

	@Override
	public List<Order> listAll() {
		// TODO Auto-generated method stub
		return null;
	}

}